package com.ruoyi.posts.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 帖子管理对象 posts
 * 
 * @author 王帅涛
 * @date 2024-11-17
 */
public class Posts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 帖子id */
    private Long id;

    /** 发布者openid */
    @Excel(name = "发布者openid")
    private String openid;

    /** 帖子分区 */
    @Excel(name = "帖子分区")
    private String area;

    /** 帖子标题 */
    @Excel(name = "帖子标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 点赞 */
    @Excel(name = "点赞")
    private Long likes;

    /** 收藏 */
    @Excel(name = "收藏")
    private Long collect;

    /** 关注 */
    @Excel(name = "关注")
    private Long focus;

    /** 发布者 */
    @Excel(name = "发布者")
    private Long userId;

    /** 评论 数量 */
    @Excel(name = "评论 数量")
    private Long comments;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setCollect(Long collect) 
    {
        this.collect = collect;
    }

    public Long getCollect() 
    {
        return collect;
    }
    public void setFocus(Long focus) 
    {
        this.focus = focus;
    }

    public Long getFocus() 
    {
        return focus;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setComments(Long comments) 
    {
        this.comments = comments;
    }

    public Long getComments() 
    {
        return comments;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("area", getArea())
            .append("title", getTitle())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("likes", getLikes())
            .append("collect", getCollect())
            .append("focus", getFocus())
            .append("userId", getUserId())
            .append("comments", getComments())
            .toString();
    }
}
